﻿using Abp.Application.Services;
using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HCD.Entities
{
    [Table("HCD_MESSAGE")]
    public class HcdMessage : Entity<long>
    {
        /// <summary>
        /// 病人标识
        /// </summary>
        [Column("PATIENT_ID", TypeName = "VARCHAR(20)")]
        public string PatientId { get; set; }

        /// <summary>
        /// 就诊标识
        /// </summary>
        [Column("VISIT_ID", TypeName = "VARCHAR(20)")]
        public string VisitId { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        [Column("MESSAGE", TypeName = "VARCHAR(200)")]
        public string Message { get; set; }

        /// <summary>
        /// 消息时间
        /// </summary>
        [Column("MESSAGE_TIME", TypeName = "DATETIME")]
        public DateTime MessageTime { get; set; }

        /// <summary>
        /// 消息状态
        /// </summary>
        [Column("MESSAGE_STATUS", TypeName = "VARCHAR(2)")]
        public string MessageStatus { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column("MESSAGE_TYPE", TypeName = "VARCHAR(10)")]
        public string MessageType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column("MESSAGE_TYPE_NAME", TypeName = "VARCHAR(40)")]
        public string MessageTypeName { get; set; }
    }
}
